//
//  PBNavigationBar.h
//  PayBox
//
//  Created by Hayder on 2022/2/10.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface HHNavigationBar : UIView

@property (nonatomic, strong) UIImageView *backgroundImageView;

@property (nonatomic, strong) UILabel *titleLabel;

@property (nonatomic, strong) UIButton *backButton;

@property (nonatomic, strong) UIView *line;

/**
 添加标题
 */
- (void)addTitle:(NSString *)title;

//添加按钮
- (void)addRightBtnWithTitleOrImage:(NSArray <UIButton *>*)items;

- (UIButton *)createBtnWithTitle:(NSString *)title color:(UIColor *)color target:(id)target action:(SEL)action;
- (UIButton *)createBtnWithImage:(UIImage *)image target:(id)target action:(SEL)action;

- (void)setNavigationBarColor:(UIColor *)color;
- (void)setBackButtonColor:(UIColor *)color;
- (void)setNavigationBarClearAndWhiteTitleWithFont:(UIFont *__nullable) font;

- (void)backBtnCancelEvent;

@end

NS_ASSUME_NONNULL_END
